/**   
 *  Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 * @Title: ActionTestBean.java 
 * @Package binder.action.support.swing 
 * @Description: TODO
 * @author dailey_dai  
 * @date Apr 11, 2012
 * @version V1.0   
 */
package binder.action.support.swing;

import binder.model.ActionBean;

/**
 * @author dailey_dai
 * 
 */
public class ActionTestBean extends ActionBean
{
	private static final String CLASSPRE = "binder.action.support.swing.ActionTestBean.";

	public static final String METHODNAME1 = CLASSPRE + "test1";

	public static final String METHODNAME2 = "test2";

	public static final String METHODNAME3 = "test3";

	public static final String METHODNAME4 = "test4";
	
	public static final String METHODNAME5 = "test5";
	

	public void test1()
	{
		System.out.println(this.getClass() + ".test1");
	}

	public void test2()
	{
		System.out.println(this.getClass() + ".test2");
	}

	public void test3()
	{
		new Thread(new Runnable()
		{
			@Override
			public void run()
			{
				System.out.println(ActionTestBean.this.getClass() + ".test3 start");
				try
				{
					Thread.sleep(1000);
				}
				catch (InterruptedException e)
				{
					e.printStackTrace();
				}
				System.out.println(ActionTestBean.this.getClass() + ".test3 end");
			}
		}).start();
	}

	public void test4()
	{
		new Thread(new Runnable()
		{
			@Override
			public void run()
			{
				System.out.println(this.getClass() + ".test4 start");
				try
				{
					Thread.sleep(1000);
				}
				catch (InterruptedException e)
				{
					e.printStackTrace();
				}
				System.out.println(this.getClass() + ".test4 end");
			}
		}).start();
	}
	
	public void test5()
	{
		System.out.println(this.getClass() + ".test5");
	}
}
